package com.noyes4j.ota.mapper;

import com.noyes4j.ota.domain.SysAuthorization;

import java.util.List;

/**
 * @ClassName SysAuthorizationMapper
 * @Description: TODO
 * @Author zhaoweiqin
 * @Date 2021/1/29
 * @Version V1.0
 **/
public interface SysAuthorizationMapper {


    /**
     * 查询授权
     *
     * @param id 授权ID
     * @return 授权
     */
    public SysAuthorization selectSysAuthorizationById(Long id);

    /**
     * 查询授权列表
     *
     * @param sysAuthorization 授权
     * @return 授权集合
     */
    public List<SysAuthorization> selectSysAuthorizationList(SysAuthorization sysAuthorization);

    /**
     * 新增授权
     *
     * @param sysAuthorization 授权
     * @return 结果
     */
    public int insertSysAuthorization(SysAuthorization sysAuthorization);

    /**
     * 修改授权
     *
     * @param sysAuthorization 授权
     * @return 结果
     */
    public int updateSysAuthorization(SysAuthorization sysAuthorization);

    /**
     * 删除授权
     *
     * @param id 授权ID
     * @return 结果
     */
    public int deleteSysAuthorizationById(Long id);

    /**
     * 批量删除授权
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteSysAuthorizationByIds(String[] ids);

}
